<script setup>
import { ref, reactive, onMounted, nextTick, onBeforeMount } from "vue";
import poiLayer from "./poiLayer.vue";
import { closePoiLayer } from '@/utils/map'


const props = defineProps({
  list: {
    type: Object,
    default: () => { }
  }
});

const show = ref(true);

onBeforeMount(() => {
})

const closeClick = function () {
  closePoiLayer()
}

</script>

<template>
  <div v-if="show">
    <poiLayer @closeClick="closeClick" :list="props.list" />
  </div>
</template>


<style lang="scss" scoped>

</style>
